package com.situ.company.mapper;

import com.situ.company.entity.DeptCount;
import com.situ.company.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;

public interface UserMapper {
    public ArrayList<User> selectAll();

    public void  deleteById(Integer id);

    public void  add(User user);

    public User login(@Param("name") String name,@Param("password") String password);

    User selectById(Integer id);

    void update(User user);

    public ArrayList<DeptCount> selectDeptCount();
}
